-- GENERATED SPELL FOR [Overlord Drakuru] --


function spell0_28998(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(54113,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28998', 17000, 1)
end

function spell1_28998(pUnit, Event) --@Throw Blight Crystal,n/a--
pUnit:FullCastSpellOnTarget(54087,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28998', 1000, 1)
end

function Sorts_28998(pUnit, Event)
local choix_sorts_28998 = math.random(0, 1)
if choix_sorts_28998 == 0 then
pUnit:RegisterEvent('spell0_28998', 1, 1)
end
if choix_sorts_28998 == 1 then
pUnit:RegisterEvent('spell1_28998', 1, 1)
end
end

function mob28998_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28998', math.random(1500, 3000), 1)
end

function mob28998_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28998_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28998_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28998, 1, 'mob28998_Action')
RegisterUnitEvent(28998, 2, 'mob28998_Leave')
RegisterUnitEvent(28998, 3, 'mob28998_Kill')
RegisterUnitEvent(28998, 4, 'mob28998_Die')
